package fi.foyt.cs.persistence.domainmodel.items;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
public class InventoryItem {

  public Key getId() {
    return id;
  }
  
  public Long getItemId() {
    return itemId;
  }
  
  public void setItemId(Long itemId) {
    this.itemId = itemId;
  }
  
  public Long getInventoryId() {
    return inventoryId;
  }
  
  public void setInventoryId(Long inventoryId) {
    this.inventoryId = inventoryId;
  }
  
  public Integer getCount() {
    return count;
  }
  
  public void setCount(Integer count) {
    this.count = count;
  }
  
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  
  @Column (nullable = false)
  private Long inventoryId;
  
  @Column (nullable = false)
  private Long itemId;
  
  @Column (nullable = false)
  private Integer count;
}
